#include "TextXML.h"

TextXML::TextXML(){
}


TextXML::TextXML(char* _content){
	content = string(_content);
}

TextXML::TextXML(string _content){
	this->content = _content;
}

string TextXML::toString() const {
    if(!content.empty())
 		return content;
	else
		return "";
}
string TextXML::getContent() const{
	return content;
}
bool TextXML::setContent(string _content){
	if(!_content.empty()){
		content = _content;
		return true;
	}
	else
		return false;
}

string TextXML::getRegExp() const {
	return "<PCDATA>";
}
